﻿using App_1.Entites;
using AutoMapper;
using Microsoft.AspNetCore.Identity;

namespace App_1.Dtos
{
    public class MappingProfile : Profile
    {
        public MappingProfile()
        {
            CreateMap<Player, PlayerDto>();
            CreateMap<Player, PlayerWithCharactersDto>();
            CreateMap<Character, CharacterDto>();

            CreateMap<PlayerForCreationDto, Player>();
            CreateMap<PlayerForUpdateDto, Player>();
            CreateMap<UserForRegistrationDto, IdentityUser>();
        }
    }
}
